﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="qqproductmanager.aspx.cs" Inherits="John.viste_qqproductmanager" MasterPageFile="~/viste/MasterPage.master" %>

<%@ Register TagPrefix="cc1" Namespace="DevCenter" Assembly="WebPager" %>
<asp:Content ID="Content2" ContentPlaceHolderID="Content2" runat="server">
          
                <asp:TextBox id="txtSelect" Width=150 runat="server"></asp:TextBox>&nbsp;
                <asp:DropDownList id="ddlClass" runat="server"></asp:DropDownList>&nbsp;&nbsp;
                <asp:Button id="btnSelect" runat="server" Text="查询" onclick="btnSelect_Click"></asp:Button>           
    <asp:Label ID="Label1" runat="server"></asp:Label>
            
            <asp:DataGrid id="DataGrid1" runat="server" AutoGenerateColumns="False"  cellpadding='4'
                cellspacing='1' CssClass='grid fixed' Width="782px" OnDeleteCommand="DataGrid1_DeleteCommand">
                <HeaderStyle HorizontalAlign="Left" CssClass="category"></HeaderStyle>
                <Columns>
                    <asp:BoundColumn DataField="qID" HeaderText="编号" Visible="false">
                        <HeaderStyle ForeColor=#0F83EC></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="qName" HeaderText="名称">
                        <HeaderStyle ForeColor=#0F83EC></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="cname" HeaderText="类别">
                        <HeaderStyle ForeColor=#0F83EC></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>                  
                    <asp:TemplateColumn>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <ItemTemplate>
                            <a  href='qqproductedit.aspx?id=<%#DataBinder.Eval(Container.DataItem,"qID")%>'>编辑</a>
                        </ItemTemplate>
                    </asp:TemplateColumn>                   
                       <asp:TemplateColumn>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                        <ItemTemplate>
                           <asp:LinkButton ID="BtnDelete" runat="server" CausesValidation="False" CommandName="Delete" Text="删除" OnClientClick="return confirm('确认要删除此行信息吗？')"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateColumn> 
                </Columns>
            </asp:DataGrid>
            <cc1:SqlPager id="SqlPager1" runat="server" PagingMode="Cached" PagerStyle="NextPrev" CacheDuration="0"></cc1:SqlPager>
</asp:Content>